package cn.edu.bupt.ch6_2.dto;

import cn.edu.bupt.ch6_2.entity.Comment;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(name = "商品及评论")
public class ProductWithComments implements Serializable {
    private Long id;
    private String name;
    private BigDecimal price;
    private boolean inStock;
    List<Comment> commentList;
}
